package com.company.serialization;

import java.io.IOException;

/**
 * @description: 测试NumberFormatException
 * @author: ruoan
 * @date: 2021/1/3 12:00
 */
public class Test4 {

    public static void main(String[] args) throws IOException, ClassNotFoundException {

        try {
            String a = "1006t";
            Integer.parseInt(a);
        } catch (NumberFormatException e) {
            e.printStackTrace();
            System.out.println("数值转换异常");
        } finally{

        }


    }
}
